package com.prs.crm.domain.sys;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * 验证器
 * 用于表单属性验证 
 * @author prs.chenzhi
 *
 */

@Entity
@Table(name="sys_validator")
public class Validator extends BaseEntity{
	
	private static final long serialVersionUID = 1L;
	
	@Id @GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	
	/**
	 * 验证器名称
	 */
	private String name;

	/**
	 * js脚本
	 */
	@Lob
	private String script;

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setScript(String script) {
		this.script = script;
	}

	public String getScript() {
		return script;
	}

}
